const path = require("path");
const packageName = require("./package.json").name;

module.exports = {
    outputDir: `../dist/${packageName}`,
    assetsDir: "static",
    devServer: {
        port: 9999,
        headers: {
            'Access-Control-Allow-Origin': '*'
        }
    },
    configureWebpack: {
        output: {
            library: 'child',
            libraryTarget: 'umd'
        }
    }
};
